/*
 * @Author: wangyifei 844650674@qq.com
 * @Date: 2022-11-27 10:22:27
 * @LastEditors: wangyifei 844650674@qq.com
 * @LastEditTime: 2022-11-27 13:59:55
 * @FilePath: \management_system_template\vue.config.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */

module.exports = {
  outputDir: __dirname + '/./admin-server/admin',
  publicPath: process.env.NODE_ENV === 'production' ? '/admin/' : '/',
  devServer: {
    proxy: {
      '/api': {
        target: 'http://localhost:3000', // target host
        pathRewrite: {
          '^/api': '/', // rewrite path
        },
      },
    },
  },
}